import request from '@/utils/request'

// 查询预警关闭记录列表
export function listAlertCloseRecord(query) {
  return request({
    url: '/buss/alertCloseRecord/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/buss/alertCloseRecord/initBean',
        method: 'post'
    })
}

// 查询预警关闭记录详细
export function getAlertCloseRecord(id) {
  return request({
    url: '/buss/alertCloseRecord/' + id,
    method: 'get'
  })
}

// 新增预警关闭记录
export function addAlertCloseRecord(data) {
  return request({
    url: '/buss/alertCloseRecord',
    method: 'post',
    data: data
  })
}

// 修改预警关闭记录
export function updateAlertCloseRecord(data) {
  return request({
    url: '/buss/alertCloseRecord',
    method: 'put',
    data: data
  })
}

// 删除预警关闭记录
export function delAlertCloseRecord(id) {
  return request({
    url: '/buss/alertCloseRecord/' + id,
    method: 'delete'
  })
}
